// op 定制layout

import {u as T, r as C} from "./axios-4a6bab72.js";
import {V} from "./viewVideoTypeList-88547e4e.js";
import {r as u, w as B, y as L, d as k, l as o, S as p, O as v, R as x, m as y, a1 as h, p as t, X as b, a0 as S, a5 as I, aC as M, a6 as R, ag as D, u as d, T as N, av as A} from "./vue-vendor-99582fd3.js";
import {r as w} from "./index-81253c65.js";
import {_ as H} from "./_plugin-vue_export-helper-c27b6911.js";
import "./ui-vendor-ea95f259.js";
/* empty css                                                                          */
const O = {
    key: 0,
    class: "relative w-full max-w-sm mx-auto rounded-xl shadow-2xl",
    role: "dialog",
    "aria-modal": "true"
}
  , j = {
    class: "p-4 text-white text-sm"
}
  , q = ["innerHTML"]
  , z = {
    __name: "specialTipBox",
    props: {
        visible: {
            type: Boolean,
            default: !1
        }
    },
    emits: ["confirm", "leave"],
    setup(r, {emit: i}) {
        const s = T()
          , e = u("")
          , m = r
          , f = () => {}
          , _ = () => {
            w.go(-1)
        }
          , a = () => {
            // 破解点1: 移除VIP跳转逻辑
            // 原逻辑：非VIP用户跳转开通页面
            // if (!s.userInfo) {
            //     s.loginDialogVisible = !0;
            //     return
            // }
            // if (!s.userInfo.isVip) {
            //     w.push("/userVip");
            //     return
            // }
        }
          , g = () => {
            document.body.style.overflow = "hidden",
            document.body.style.paddingRight = "0px"
        }
          , c = () => {
            document.body.style.overflow = "",
            document.body.style.paddingRight = ""
        }
        ;
        B( () => m.visible, n => {
            n ? g() : c()
        }
        , {
            immediate: !0
        }),
        L( () => {
            c()
        }
        );
        const l = () => {
            C.post("/view/specialTipBoxContent").then(n => {
                n.code === 200 && (e.value = n.message)
            }
            )
        }
        ;
        return k( () => {
            l()
        }
        ),
        (n, G) => (o(),
        p(I, {
            to: "body"
        }, [v(h, {
            name: "dialog-fade"
        }, {
            default: x( () => [r.visible ? (o(),
            y("div", {
                key: 0,
                class: "fixed inset-0 z-[998] flex items-center justify-center bg-opacity-50 backdrop-blur-sm",
                onClick: S(f, ["self"])
            }, [v(h, {
                name: "dialog-fade"
            }, {
                default: x( () => [r.visible ? (o(),
                y("div", O, [t("div", j, [t("div", {
                    innerHTML: e.value
                }, null, 8, q)]), t("div", {
                    class: "px-4 pb-4 flex gap-3"
                }, [t("button", {
                    onClick: a,
                    class: "flex-1 px-4 py-2.5 rounded-lg bg-red-600 text-white font-medium text-sm shadow-lg transition-all duration-200 hover:bg-red-700 hover:shadow-xl active:scale-95"
                }, " 立即开通 "), t("button", {
                    onClick: _,
                    class: "flex-1 px-4 py-2.5 rounded-lg bg-gray-600 text-white font-medium text-sm shadow-lg transition-all duration-200 hover:bg-gray-700 hover:shadow-xl active:scale-95"
                }, " 考虑一下 ")])])) : b("", !0)]),
                _: 1
            })])) : b("", !0)]),
            _: 1
        })]))
    }
}
  , E = H(z, [["__scopeId", "data-v-cb08bcb6"]])
  , Q = {
    __name: "specialVideoLayout",
    setup(r) {
        const i = T();
        u(!0);
        const s = u([{
            id: "0",
            title: "热门",
            route: "/specialVideoRecommend"
        }]);
        k( () => {
            m()
        }
        ),
        M( () => {
            // e.value = !0  // 破解点3: 禁用自动显示提示
        }
        ),
        R( () => {
            e.value = !1
        }
        );
        const e = u(!0)
          , m = () => {
            C.post("/view/videoTypeList/1").then(a => {
                a.code === 200 && s.value.push(...a.data)
            }
            )
        }
          , f = () => {
            e.value = !1
        }
          , _ = () => {
            e.value = !1
        }
        ;
        return (a, g) => {
            const c = D("router-view");
            return o(),
            y("div", null, [t("div", null, [v(V, {
                videoTypeList: s.value,
                isSpecial: ""
            }, null, 8, ["videoTypeList"])]), t("div", null, [v(c, null, {
                default: x( ({Component: l}) => [(o(),
                p(A, null, [(o(),
                p(N(l)))], 1024))]),
                _: 1
            })]), 
            // 破解点2: 完全移除VIP验证组件
            // 原代码会在此处验证VIP状态并显示提示框
            t("div", null, []) // 空div替代VIP验证
            ])
        }
    }
};
export {Q as default};